<?php /* Smarty version 2.6.6, created on 2013-10-22 14:08:24
         compiled from create_playlist.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'create_playlist.tpl', 83, false),)), $this); ?>
<?php echo '
<script type="text/javascript">
function checkForm()
{
    title = document.getElementById("playlist_title").value;
    
    if (title == "")
    {
        hideAllErrors();
        document.getElementById("titleError").style.display = "block";
        document.getElementById("playlist_title").select();
        document.getElementById("playlist_title").focus();
        return false;
    } 
    else{
        hideAllErrors();
        jQuery(\'#create_form\').submit();
    }
    return true;
    
}

function hideAllErrors() 
{
    document.getElementById("titleError").style.display = "none"
}
</script>
'; ?>


<div id="main_wrap">
    <div class="center_wrap clearfix">
        <h2 class="no_bottom no_top breadcrumb">
            <a href="javascript:void(0);">Create Playlists</a>
	    </h2>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "accountmenu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        <div class="right col1">
            <div class="cat_box_full clearfix" id="browse_main"> 
                                <table width="100%" cellspacing="3" cellpadding="3" border="0">
                    <tr>
                        <td valign="top">
                            <h2><span style="float:left;">Create playlist</span></h2>
                        </td>
                    </tr>
					                    <?php if ($this->_tpl_vars['errorPlaylist'] != ""): ?>
                        <tr>
                            <td>
                                <div id="smsg" class="errorPage clearfix" style="">
                                    <h2 style="font-size:18px"><?php echo $this->_tpl_vars['errorPlaylist']; ?>
</h2>
                                </div>
                            </td>
                        </tr>
                    <?php endif; ?>   
                </table>    
                <div class="cat_body_full clearfix">
                                  
                  <!-- LOOP START -->
                  <div id="browse_results">
                
                  <form name="upload_form" id="create_form" action="<?php echo $this->_tpl_vars['baseurl']; ?>
/create_playlist.php" method="POST">
            <input type="hidden" name="UPLOAD_IDENTIFIER" id="UPLOAD_IDENTIFIER" value="<?php echo $this->_tpl_vars['upload_id']; ?>
" />
            <?php if ($this->_tpl_vars['playlist_added'] == '1'): ?>
            <div id="smsg" class="errorPage clearfix" style="">
                  <h2 style="font-size:18px">Your playlist has been created successfully.</h2>
            </div>
            <?php endif; ?>
            <p>
              <label for="title">Title:&nbsp;</label>
                  <input name="playlist_title" id="playlist_title" type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['playlist_title'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
" size="30" /><br />
                <div class="uerror" id="titleError">Error: Playlist title cannot be empty.</div>
            </p>
            <p>
                <input type="button" name="create_button" id="upload_button" value="Create" onClick="checkForm();" />
				<a style="text-decoration:none;" href="<?php echo $this->_tpl_vars['baseurl']; ?>
/myplaylist.php"><input type="button" name="cancel_button" id="cancel_button" value="Cancel" /></a>
            </p>
          </form>
                  </div>
                  <!-- LOOP END -->
    
                </div>

                            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>